<template>
  <check-group :descObj="descObj"  :infoList="infoList" ref="commonGroupRef" ></check-group>
</template>

<script setup >
import { ref, reactive, onMounted, computed, watch } from "vue";
import { useRouter, useRoute } from "vue-router";
import { tip, get, post, put, del, ddo, elConfirm } from "@/common";


const descObj = {

        urlMark:'check',

        previousPdIds: [1050,1060],
        currentPdId: 1070,

        previousNode: [{
          colLabel:"生产量",
          colProp: "arrange_num"
        },{
          colLabel:"一等品",
          colProp: "check_1"
        },{
          colLabel:"二等品",
          colProp: "check_2"
        },{
          colLabel:"三等品",
          colProp: "check_3"
        },{
          colLabel:"等外品",
          colProp: "check_4"
        }],

        currentNode: {
          colLabel: "质检量",
          colProp: "check_num",
        },
      };

import CheckGroup from './check-group.vue';
const checkGroupRef = ref();



//获取基础信息
const infoList = ref([]);
const getInfoList = () => {
  get("/plan/manager/info").then((result) => {
    infoList.value = result.data;
  });
};
getInfoList();

const refreshData = ()=>{
  checkGroupRef.value.refresh();
}
</script>

<style scoped >

</style>